from scrapy.cmdline import execute
import os
import sys

if __name__ == '__main__':
    sys.path.append(os.path.dirname(os.path.abspath(__file__)))
    # execute(['scrapy', 'crawl', 'hs300_stocks'])
    # execute(['scrapy', 'crawl', 'money_flow_daily'])  #大盘资金流向
    # execute(['scrapy', 'crawl', 'company_core'])  # 公司核心数据
    # execute(['scrapy', 'crawl', '唐姿琦的模块'])
    # execute(['scrapy', 'crawl', 'consumer_price_index'])
    # execute(['scrapy', 'crawl', 'global_stock_indices'])#全球股票数据爬取
    # execute(['scrapy', 'crawl', 'daily_exchange_rate'])
    # execute(['scrapy', 'crawl', 'yearly_financial_report'])  # 全球股票数据爬取
    # execute(['scrapy', 'crawl', 'money_flow_daily_mr']) #资金流量
    execute(['scrapy', 'crawl', 'All_Data']) #宏观数据
    #execute(['scrapy', 'crawl', 'money_flow_daily_mr']) #资金流量
    # execute(['scrapy', 'crawl', 'quarterly_financial_report'])  #季报